#include<stdio.h>
#include<driver.h>

int check(int code)
{
	if (code == 123)
	{
		return 1;
	}
	else
	{
		return 0;
	}
}

int main()
{
	int s = 0;

	printf("please input\n");
	int ret = scanf_s("%d", &s);
	if (ret)
	{
		if (check(s))
		{
			printf("success %d %d\n", s, ret);
		}
		else
		{
			printf("error code %d %d\n", s, ret);
		}
	}
	else
	{
		printf("error input");
	}
	return 0;
}